home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Utilities / DOpus / GDTrash / S / RemoveDevice
Encoding:
AmigaDOS Script File  |  1999-09-01  |  438 b   |  26 lines

  1. .key Device/A,Opt
  2. .bra {
  3. .ket }
  4.  
  5. ;$VER: Full device remover
  6. ;Original by Steve Clack (Liquid Software Design )
  7. ;Slightly modified by Nils-Erik
  8. ;(make sure the 's' protect bit is set on this file!)
  9.  
  10. FailAt 100
  11.  
  12. ResolveDeviceName >ENV:DEV {Device}
  13. Echo >ENV:DEVO $DEV NOLINE
  14. Echo >>ENV:DEVO ":" NOLINE
  15.  
  16. if {Opt} EQ 1
  17.  Remrad {Device} force
  18. Endif
  19.  
  20. Assign {Device} DISMOUNT
  21. Assign $DEVO DISMOUNT
  22.  
  23. Delete >nil: ENV:DEV
  24. Delete >nil: ENV:DEVO
  25.  
  26.